/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chat;

import java.io.*;

/**
 *
 * @author Mathias
 */
public class ChatCommand implements Serializable {
    private CmdEnum command;
    private ChatMessage chatMsg = null;
    private String nickName = null;
    private int msgId = 0;

    public ChatCommand(CmdEnum command){
        this.command = command;
    }

    /**
     * @return the command
     */
    public CmdEnum getCommand() {
        return command;
    }

    /**
     * @param command the command to set
     */
    public void setCommand(CmdEnum command) {
        this.command = command;
    }

    /**
     * @return the message
     */
    public ChatMessage getChatMsg() {
        return chatMsg;
    }

    /**
     * @param message the message to set
     */
    public void setChatMsg(ChatMessage chatMsg) {
        this.chatMsg = chatMsg;
    }

    /**
     * @return the nickName
     */
    public String getNickName() {
        return nickName;
    }

    /**
     * @param nickName the nickName to set
     */
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    /**
     * @return the msgId
     */
    public int getMsgId() {
        return msgId;
    }

    /**
     * @param msgId the msgId to set
     */
    public void setMsgId(int msgId) {
        this.msgId = msgId;
    }
}
